package com.railway.servlet;

import java.io.IOException;
import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.railway.bean.Integra;
import com.railway.bean.User;
@WebServlet("/addUser.do")
public class AddUserServlet extends HttpServlet{
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String username=req.getParameter("username");
		String password=req.getParameter("password");
		String realname=req.getParameter("realname");
		int userIdType=Integer.getInteger(req.getParameter("userIdType"));
		String IdCard=req.getParameter("IdCard");
		String phone=req.getParameter("phone");
		String email=req.getParameter("email");
		int passengerType=Integer.getInteger(req.getParameter("passengerType"));
		String payPassword=req.getParameter("payPassword");
		User u = new User(username, phone, password, realname, userIdType, IdCard, email, passengerType, payPassword);
	}
}
